package com.df.hitime.common;

import org.apache.commons.codec.digest.DigestUtils;

/**
 * @Description:
 * @Author: huangwl
 * @CreateDate: 2018/11/27 16:05
 */
public class MD5Utils {
    public static String md5(String text, String key)  {
        //加密后的字符串
        String encodeStr=DigestUtils.md5Hex(text + key);
        return encodeStr;
    }
}
